<%-- 
    Document   : product
    Created on : Mar 9, 2012, 6:23:18 PM
    Author     : Yasmani
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" 
    prefix="c" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1><c:out value="${product.product_name}"/> </h1>
        
        <p><table border="1">
  <tr>
    <td><a href="#"><img name="picture" src="<c:out value="${product.pic}" />" ></a></td>
    <td>
        <div>Name: <a><c:out value="${product.product_name}"/></a></div> 
        <div>Price: <a><c:out value="${product.price}" /></a></div>
        <div>Items Available: <a><c:out value="${product.amount}" /></a></div>
    </td>
    <td><a> <h3>Pay Using PayPal</h3>
            <form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
            <input type="hidden" name="cmd" value="_xclick">
            <input type="hidden" name="business" value="me@mybusiness.com">
            <input type="hidden" name="currency_code" value="USD">
            <input type="hidden" name="item_name" value="<c:out value="${product.product_name}"/>">
            <input type="hidden" name="amount" value="<c:out value="${product.price}" />">
            <input type="image" src="http://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
            </form></a></td>
            <td><a><h3>Pay Using Credit Card</h3>
             <form action="creditcard.jsp">
                <input type="submit" value="Buy Now" />
             </form>
            </a></td>
            
  </tr>
</table>
</p>

<p><div>Product Description</div>
<div><c:out value="${product.product_description}" /></div>
</p>
    </body>
</html>
